home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6E9164CF-8249-11D1-918B-0020185489F0}#6.0#0"; "MCTRL.OCX"
- Begin VB.Form Form1
- BorderStyle = 3 'Fester Dialog
- ClientHeight = 2550
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 3330
- KeyPreview = -1 'True
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2550
- ScaleWidth = 3330
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows-Standard
- Begin MouseCtrl.MouseControl MouseControl1
- Left = 2760
- Top = 1320
- _ExtentX = 979
- _ExtentY = 979
- End
- Begin VB.CheckBox Check1
- Caption = "OnTop"
- Height = 255
- Left = 1680
- TabIndex = 7
- Top = 720
- Value = 1 'Aktiviert
- Width = 975
- End
- Begin VB.CommandButton Command1
- Caption = "&Set Cursor"
- Height = 375
- Left = 120
- TabIndex = 2
- Top = 600
- Width = 1335
- End
- Begin VB.TextBox Text2
- Height = 285
- Left = 840
- MaxLength = 4
- TabIndex = 1
- Text = "100"
- Top = 240
- Width = 615
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 120
- MaxLength = 4
- TabIndex = 0
- Text = "100"
- Top = 240
- Width = 615
- End
- Begin VB.Timer Timer1
- Interval = 2
- Left = 2760
- Top = 720
- End
- Begin VB.Label Label4
- Caption = "Testproject"
- BeginProperty Font
- Name = "Arial"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = -1 'True
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1800
- TabIndex = 6
- Top = 360
- Width = 1335
- End
- Begin VB.Label Label3
- Caption = "MouseControl"
- BeginProperty Font
- Name = "Arial"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = -1 'True
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1560
- TabIndex = 5
- Top = 120
- Width = 1695
- End
- Begin VB.Label Label2
- Caption = "Press ""4"" for LEFT Double Click Press ""5"" for MIDDLE Double Click Press ""6"" for RIGHT Double Click"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 735
- Left = 120
- TabIndex = 4
- Top = 1800
- Width = 3015
- End
- Begin VB.Label Label1
- Caption = "Press ""1"" for LEFT Click Press ""2"" for MIDDLE Click Press ""3"" for RIGHT Click"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 615
- Left = 120
- TabIndex = 3
- Top = 1080
- Width = 2535
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Check1_Click()
- If Check1.Value = 1 Then MouseControl1.ontop = True
- If Check1.Value = 0 Then MouseControl1.ontop = False
- End Sub
- Private Sub Command1_Click()
- MouseControl1.SetMouse Text1.Text, Text2.Text
- End Sub
- Private Sub Form_KeyPress(KeyAscii As Integer)
- If KeyAscii = 49 Then MouseControl1.LeftClick
- If KeyAscii = 50 Then MouseControl1.MiddleClick
- If KeyAscii = 51 Then MouseControl1.RightClick
- If KeyAscii = 52 Then MouseControl1.LeftDblClick
- If KeyAscii = 53 Then MouseControl1.MiddleDblClick
- If KeyAscii = 54 Then MouseControl1.RightDblClick
- On Error Resume Next
- DoEvents
- Form1.SetFocus ' set the focus back to the project
- End Sub
- Private Sub Form_Load()
- If Check1.Value = 1 Then MouseControl1.ontop = True
- If Check1.Value = 0 Then MouseControl1.ontop = False
- End Sub
- Private Sub Timer1_Timer()
- Form1.Caption = "X: " & MouseControl1.x & " Y: " & MouseControl1.y
- End Sub
-